C++ Basics

General Informations

Code examples

All listed code inside this chapter can be tested using runnable.com. To ensure that everything is working just fine on your system please run the following basic example.

#include <iostream>

int main ()
{
  std::cout << "Hello World!";
  return 0;
}

Exercise example:

Exercise
Correct!
False!
Define a variable `x` equal to 10.
var x =